core: CHANGE CHECKSUM ALGORITHM, port checksum API to GFile
authorColin Walters <walters@verbum.org>
Fri, 18 Nov 2011 00:32:01 +0000 (19:32 -0500)
committerColin Walters <walters@verbum.org>
Fri, 18 Nov 2011 00:32:01 +0000 (19:32 -0500)
commitb8cef545d18738deaf4ba5e394c648fbbeb5cbef
tree0b5eb744b7cb0688f429c94693d7c746716954f6
parent2c2b9c0e0098252965bbc3ddcf378bfaa362d16e
core: CHANGE CHECKSUM ALGORITHM, port checksum API to GFile

This commit originally was to port ostree_stat_and_checksum_file() to
GFile*, but I noticed that the checksum code was reading data in host
endianness.  Fix that while we're here.

This invalidates all existing repositories.
src/libostree/ostree-core.c
src/libostree/ostree-core.h
src/libostree/ostree-repo.c
src/ostree/ot-builtin-fsck.c
tests/t0000-basic.sh